<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>豆咖音乐 </title>
		<link rel="icon" href="favicon.ico" mce_href="favicon.ico" type="image/x-icon">
		<link rel="shortcut icon" href="favicon.ico" mce_href="http://jt.hapboy.xyz/favicon.ico" type="image/x-icon">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/front/assets/css/reset.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/front/assets/css/common.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/front/assets/css/slider.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/front/assets/css/font-awesome.min.css">
		<script src="${pageContext.request.contextPath}/front/assets/js/jquery.min.js"></script>
		<script src="${pageContext.request.contextPath}/front/assets/js/HBSlider.js"></script>
		<script src="${pageContext.request.contextPath}/front/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/front/css/auth.css">
		<style>
		 .pictureSize{
	  		width:45px;
	  		height:45px;
	  		border: 1px solid white;
	  		border-radius: 30px;
	  		margin-top:5px;
  		}
		</style>
	</head>

	<body>
		<!-- 导航栏 -->
		<header>
			<div class="container">
				<div class="navbar-header">
					<a href="" class="navbar-brand">
						<img src="assets/images/logo.png" alt="">
					</a>
				</div>
				<nav>
					<ul class="nav navbar-nav navbar-link" style="display: block;">
						<li class="active">
							<a href="index.html">首页</a>
						</li>
						<li>
							<a href="#">我的音乐</a>
						</li>
						<li>
							<a href="#">歌手</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/front/leaderboard.jsp">排行榜</a>
						</li>
						<li>
							<a href="#">会员中心</a>
						</li>
						<li>
							<a href="#">歌曲广场</a>
						</li>
					</ul>
					<ul class="nav navbar-nav navbar-right navbar-sm" style="display: block;">
						<li><input type="text" class="search-input" placeholder="歌名 / 歌手"></li>
						<li>
							<a href="#"><i class="fa fa-search" aria-hidden="true"></i></a>
						</li>
						<li id="loginItem">
							<a href="register_login.jsp">注册 / 登录</a>
						</li>
					</ul>
				</nav>
			</div>
		</header>

		<div class="container-sm slider-wrap">
			<div class="slider">
				<div class="slider-item-list"></div>
				<div class="slider-dots">
					<div class="slider-dots-wrap"></div>
				</div>
				<div class="slider-arrows">
					<div class="slider-arrows-wrap">
						<span class="slider-arrow slider-arrow-left" onclick="HBSlider.turn(-1)"></span>
						<span class="slider-arrow slider-arrow-right" onclick="HBSlider.turn(1)"></span>
					</div>
				</div>
			</div>
		</div>
		<!-- 主内容区域 -->
		<div class="container-sm box">
			<!-- 主内容 -->
			<div class="main">
				<div class="main-wrap">
					<div class="content-box">
						<!-- 热门推荐 -->
						<div class="hot-recommand">
							<div class="content-header">
								<h2><i class="fa fa-music red"></i>热门歌手</h2>
								<div class="tab">
									<a href="${pageContext.request.contextPath}/front/category/piano">内地</a>
									<span class="line">|</span>
									<a href="${pageContext.request.contextPath}/front/category/guitar">港台</a>
									<span class="line">|</span>
									<a href="${pageContext.request.contextPath}/front/category/cartoon">欧美</a>
									<span class="line">|</span>
									<a href="${pageContext.request.contextPath}/front/category/elect">韩国</a>
								</div>
								<span class="more"><a href="#">更多</a></span>
							</div>
							<ul class="music-list clearfix">
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000001Lr98T0yEWAk.jpg?max_age=2592000">
										<a title="赵雷" href="./music/22712173.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="赵雷" href="./music/22712173.html">赵雷</a>
									</p>
									<!-- <div class="author">HaPBoy</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000001BHDR33FZVZ0.jpg?max_age=2592000">
										<a title="毛不易" href="./music/586299.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="毛不易" href="./music/586299.html">毛不易</a>
									</p>
									<!-- <div class="author">Hapon</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000000mLAT42CFWNa.jpg?max_age=2592000">
										<a title="朴树" href="./music/149297.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="朴树" href="./music/149297.html">朴树</a>
									</p>
								<!-- 	<div class="author">超级无敌帅气苗</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000001Yxpxc0OaUUX.jpg?max_age=2592000">
										<a title="逃跑计划" href="./music/441532.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="逃跑计划" href="./music/441532.html">逃跑计划</a>
									</p>
									<!-- <div class="author">Hapon</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000004WgCsE3KBddt.jpg?max_age=2592000">
										<a title="陈粒" href="./music/2116537.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="陈粒" href="./music/2116537.html">陈粒</a>
									</p>
									<!-- <div class="author">HaPBoy</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000003x77MM2iIg6c.jpg?max_age=2592000">
										<a title="刘惜君" href="./music/857896.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="刘惜君" href="./music/857896.html">刘惜君</a>
									</p>
									<!-- <div class="author">LoveMiao</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M0000003ZpE43ypssl.jpg?max_age=2592000">
										<a title="张碧晨" href="./music/406238.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="张碧晨" href="./music/406238.html">张碧晨</a>
									</p>
									<!-- <div class="author">HaPBoy</div> -->
								</li>
								<li>
									<div class="u-cover">
										<img src="https://y.gtimg.cn/music/photo_new/T001R300x300M000000ohzzi3esYiQ.jpg?max_age=2592000">
										<a title="许飞" href="./music/36990266.html" class="msk"></a>
									</div>
									<p class="dec">
										<a title="许飞" href="./music/36990266.html">许飞</a>
									</p>
									<!-- <div class="author">HaPBoy</div> -->
								</li>
							</ul>
						</div>
						<!-- 分类榜单 -->
						<div class="category">
							<div class="content-header">
								<h2><i class="fa fa-music red"></i>巅峰热歌</h2>
							</div>
							<div class="row">
								<div class="category-music-list">
									<div class="category-header">
										🎹 流行
									</div>
									<ul>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">1</span>
													<a href="./music/22712173.html" title="Refrain">Refrain</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-26</span>
												<span class="avatar"><img src="./storage/avatar/18.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">2</span>
													<a href="./music/586299.html" title="風の住む街">風の住む街</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-20</span>
												<span class="avatar"><img
                        src="./storage/avatar/10.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">3</span>
													<a href="./music/357126.html" title="Tassel">Tassel</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-25</span>
												<span class="avatar"><img
                        src="./storage/avatar/25.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">4</span>
													<a href="./music/139730.html" title="安静的午后">安静的午后</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-17</span>
												<span class="avatar"><img
                        src="./storage/avatar/5.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">5</span>
													<a href="./music/139774.html" title="The truth that you leave">The truth that you leave</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-13</span>
												<span class="avatar"><img
                        src="${pageContext.request.contextPath}/front/storage/avatar/24.jpg"></span>
											</div>
										</li>
									</ul>
								</div>
								<div class="category-music-list">
									<div class="category-header">
										🎸 民谣
									</div>
									<ul>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">1</span>
													<a href="./music/22822602.html" title="風の詩">風の詩</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-12</span>
												<span class="avatar"><img
                        src="./storage/avatar/20.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">2</span>
													<a href="./music/709386.html" title="晴れ 时どき 雪">晴れ 时どき 雪</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-22</span>
												<span class="avatar"><img
                        src="./storage/avatar/3.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">3</span>
													<a href="./music/22688487.html" title="風見鶏">風見鶏</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-23</span>
												<span class="avatar"><img
                        src="./storage/avatar/1.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">4</span>
													<a href="./music/441552.html" title="奇迹の山">奇迹の山</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-22</span>
												<span class="avatar"><img
                        src="./storage/avatar/2.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">5</span>
													<a href="./music/441532.html" title="流れ行く云">流れ行く云</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-21</span>
												<span class="avatar"><img
                        src="./storage/avatar/6.jpg"></span>
											</div>
										</li>
									</ul>
								</div>
							</div>
							<div class="row">
								<div class="category-music-list">
									<div class="category-header">
										🍡 摇滚
									</div>
									<ul>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">1</span>
													<a href="./music/426341675.html" title="秒速五厘米">秒速五厘米</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-23</span>
												<span class="avatar"><img
                        src="./storage/avatar/12.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">2</span>
													<a href="./music/22707001.html" title="白詰草">白詰草</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-14</span>
												<span class="avatar"><img
                        src="./storage/avatar/1.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">3</span>
													<a href="./music/761323.html" title="鸟の诗 ~">鸟の诗 ~</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-26</span>
												<span class="avatar"><img
                        src="./storage/avatar/4.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">4</span>
													<a href="./music/528283.html" title="桜花抄">桜花抄</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-25</span>
												<span class="avatar"><img
                        src="./storage/avatar/17.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">5</span>
													<a href="./music/442454.html" title="人生的回转木马">人生的回转木马</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-17</span>
												<span class="avatar"><img
                        src="./storage/avatar/9.jpg"></span>
											</div>
										</li>
									</ul>
								</div>
								<div class="category-music-list">
									<div class="category-header">
										⚡️ 电子
									</div>
									<ul>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">1</span>
													<a href="./music/28828074.html" title="Because of You">Because of You</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-23</span>
												<span class="avatar"><img
                        src="./storage/avatar/17.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">2</span>
													<a href="./music/29207817.html" title="Easy Breeze">Easy Breeze</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-12</span>
												<span class="avatar"><img
                        src="./storage/avatar/14.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">3</span>
													<a href="./music/16345145.html" title="Levels - Radio Edit">Levels - Radio Edit</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-13</span>
												<span class="avatar"><img
                        src="./storage/avatar/5.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">4</span>
													<a href="./music/2116537.html" title="Remember">Remember</a>
												</div>
											</div>
											<div class="info">
												<span class="date">11-25</span>
												<span class="avatar"><img
                        src="./storage/avatar/2.jpg"></span>
											</div>
										</li>
										<li class="music-list-item">
											<div class="title">
												<div class="title_wrap">
													<span class="rank">5</span>
													<a href="./music/36990266.html" title="Faded">Faded</a>
												</div>
											</div>
											<div class="info">
												<span class="date">12-24</span>
												<span class="avatar"><img
                        src="./storage/avatar/10.jpg"></span>
											</div>
										</li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<!-- 侧边栏 -->
			<div class="sidebar" style="min-height: 1094px">
				<div class="right-module">
					<h4>最新单曲</h4>
					<ul class="new-artist-songs">
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/0.jpg">
							</div>
							<div class="info">
								<h3>Refrain</h3>
								<p>HaPBoy / <span>1595</span>次播放</p>
							</div>
							<a href="./music/22712173.html" title="Refrain" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/4.jpg">
							</div>
							<div class="info">
								<h3>A Little Story</h3>
								<p>LoveMiao / <span>1052</span>次播放</p>
							</div>
							<a href="./music/857896.html" title="A Little Story" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/3.jpg">
							</div>
							<div class="info">
								<h3>晴れ 时どき 雪</h3>
								<p>Annie雀 / <span>349</span>次播放</p>
							</div>
							<a href="./music/709386.html" title="晴れ 时どき 雪" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/14.jpg">
							</div>
							<div class="info">
								<h3>Easy Breeze</h3>
								<p>Hannah / <span>420</span>次播放</p>
							</div>
							<a href="./music/29207817.html" title="Easy Breeze" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/5.jpg">
							</div>
							<div class="info">
								<h3>安静的午后</h3>
								<p>Wing / <span>1356</span>次播放</p>
							</div>
							<a href="./music/139730.html" title="安静的午后" class="cover-link"></a>
						</li>
					</ul>
				</div>
				<div class="right-module">
					<h4>热门单曲</h4>
					<ul class="new-artist-songs">
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/20.jpg">
							</div>
							<div class="info">
								<h3>風の詩</h3>
								<p>苗^v^ / <span>1167</span>次播放</p>
							</div>
							<a href="./music/22822602.html" title="風の詩" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/0.jpg">
							</div>
							<div class="info">
								<h3>Remember</h3>
								<p>HaPBoy / <span>1008</span>次播放</p>
							</div>
							<a href="./music/2116537.html" title="Remember" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/9.jpg">
							</div>
							<div class="info">
								<h3>夜的钢琴曲五</h3>
								<p>超级无敌帅气苗 / <span>864</span>次播放</p>
							</div>
							<a href="./music/149297.html" title="夜的钢琴曲五" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/00.jpg">
							</div>
							<div class="info">
								<h3>奇迹の山</h3>
								<p>Hapon / <span>838</span>次播放</p>
							</div>
							<a href="./music/441552.html" title="奇迹の山" class="cover-link"></a>
						</li>
						<li class="artist-song">
							<div class="avatar">
								<img src="./storage/avatar/17.jpg">
							</div>
							<div class="info">
								<h3>Because of You</h3>
								<p>Octobse_Idy / <span>821</span>次播放</p>
							</div>
							<a href="./music/28828074.html" title="Because of You" class="cover-link"></a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<!-- 底部版权 -->
		<footer>
			<div class="container">
				<div class="copyright">
					<p>Copyright © <span class="update-year">2020</span> DoCoMusic- All Rights Reserved</p>
				</div>
			</div>
		</footer>
		<!-- JS 脚本 -->

		<script>
			// 轮播图数据
			var sliderData = [{
				title: '晴れ 时どき 雪',
				pic: './storage/slider/01.png',
				url: './music/709386.html'
			}, {
				title: 'Flower Dance',
				pic: './assets/images/lunbo2.jpg',
				url: './music/406238.html'
			}, {
				title: 'A Little Story - Valentin',
				pic: './assets/images/lunbo3.jpg',
				url: './music/857896.html'
			}, {
				title: '桜花抄 - 天門',
				pic: './assets/images/lunbo4.jpg',
				url: './music/528283.html'
			}];

			$(function() {
				HBSlider.setConfig({
					autoPlay: true,
					delay: 5
				});
				HBSlider.setItems(sliderData);
				HBSlider.init();
				HBSlider.play();
			});
		</script>
		<script src="${pageContext.request.contextPath}/front/js/auth.js"></script>
		<script src="${pageContext.request.contextPath}/front/js/jquery-3.5.1.js"></script>
		<script>
			/* Auth.init({
				login_url: '#login',
				forgot_url: '#forgot'
			}); */
			
			$(document).ready(function(){
				//判断session是否存在，存在是登录状态
				
				var loginAccount = "${sessionScope.loginAccount}";
				if (loginAccount != "") {
					if ("${sessionScope.loginAccount.accountPicture}"=="") {
						 $("#loginItem").empty(); 
						 $("#loginItem").append("<img id=\"faceImg\" class=\"pictureSize\" src=\"${pageContext.request.contextPath}/front/img/adminpicture.jpg\"/>");
					}else {
						 $("#loginItem").empty(); 
						 $("#loginItem").append("<img id=\"faceImg\" class=\"pictureSize\" src=\"${pageContext.request.contextPath}/FileDownloadServlet?fileName=images/${sessionScope.loginAccount.accountPicture}\"/>");
					}
					
				}
				
			})
		</script>
		
	</body>

</html>